{{template "header"}}

<title>分类-beego 博客</title>
</head>

<body>

<div class="navbar navbar-default navbar-fixed-top">
    <div class="container">
    {{template "navbar" .}}
    </div>

</div>

<div style="height: 50px"></div>

<div class="container">
      <h1>添加文章</h1>
    <form method="post" action="/topic">
        <div>
            <label>文章标题：</label>
            <input type="text" name="title" class="form-control">
        </div>

        <div>
            <label>文章标签：</label>
            <input type="text" name="lable" class="form-control">
        </div>

        <div class="form-group">
            <label>文章分类：</label>
            <input type="text" class="form-control" name="category">
        </div>

        <div class="form-group">
            <label>文章内容：</label>
            <textarea name="content" cols="30" rows="10" class="form-control"></textarea>
        </div>

        <button type="submit" class="btn btn-default">添加文章</button>
    </form>
</div>

<script type="text/javascript" src="http://cdn.staticfile.org/jquery/3.2.1/jquery.js"></script>
<script type="text/javascript" src="/static/js/bootstrap.min.js"></script>

</body>
</html>